🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / core / model / src / commonMain / kotlin / org / meshtastic / core / model / util / CommonUtils.kt
Displaying Raw • Download
core/model/src/commonMain/kotlin/org/meshtastic/core/model/util/CommonUtils.kt 4e15ef1c7f68f8c683fe8b7ff741a5167e154d2e (4e15ef1c) Text, 1.01 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.model.util
T8b949e/** Utility function to make it easy to declare byte arrays */
Tff7b72fun Td2a8ffbyteArrayOfIntsTb4b4b4(Tff7b72vararg Te6edf3intsTb4b4b4: Tffa657IntTb4b4b4) Tff7b72= Te6edf3ByteArrayTb4b4b4(Te6edf3intsTb4b4b4.Te6edf3sizeTb4b4b4) Tb4b4b4{ Te6edf3pos Tff7b72-Tff7b72> Te6edf3intsTff7b72[Te6edf3posTff7b72]Tb4b4b4.Te6edf3toByteTb4b4b4(Tb4b4b4) Tb4b4b4}
Tff7b72fun Td2a8ffxorHashTb4b4b4(Te6edf3bTb4b4b4: Te6edf3ByteArrayTb4b4b4) Tff7b72= Te6edf3bTb4b4b4.Te6edf3foldTb4b4b4(T79c0ff0Tb4b4b4) Tb4b4b4{ Te6edf3accTb4b4b4, Te6edf3x Tff7b72-Tff7b72> Te6edf3acc Te6edf3xor Tb4b4b4(Te6edf3xTb4b4b4.Te6edf3toIntTb4b4b4(Tb4b4b4) Te6edf3and Te6edf3BYTE_MASKTb4b4b4) Tb4b4b4}
Tff7b72private Tff7b72const Tff7b72val Te6edf3BYTE_MASK Tff7b72= T79c0ff0Te6edf3xff
Served by rngit 1.5.0 - Generated in 0.04s